package com.chang.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @program: erp-api
 * @description:
 * @author: chang
 * @create: 2025-02-15 11h
 **/
@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    String secret="abcde";//生成token密钥

    long validTime=30*60*1000;//默认有效时间

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public long getValidTime() {
        return validTime;

    }
    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }
}
